package com.xk.school_device.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.PageInfo;
import com.xk.school_device.entity.Purchases;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xk
 * @since 2025-04-16
 */
public interface IPurchasesService extends IService<Purchases> {

    PageInfo<Purchases> getPurchases(Purchases purchases);

    void deleteById(String id);

    void updatePurchasesById(Purchases purchases);
    PageInfo<Purchases> findPendingApprovals(String userId,Purchases purchases);

    Purchases getPurchaseById(String purchaseId);
}
